<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

   		<%
   			String name=request.getParameter("uname");
   			String pass=request.getParameter("upwd");
   			if(name!=null){
   				if(!name.equals("admin")||!pass.equals("admin")){
   		%>
   				<script>
   					alert("用户名或密码错误，点击确认返回至首页");
   					location.href="homepage.jsp";
   				</script>
   		<%   			
   				}
   			}else{
   		%>
   				<script>
   					alert("不是从首页登录过来的，点击确认返回至首页");
   					location.href="homepage.jsp";
   				</script>
   		<% } %>

